class Http {
    static baseUrl = "http://122.112.142.6:8888"
    static request(url) {
        return new Promise((resolve, reject) => {
            wx.request({
                url: this.baseUrl + url,
                success: (res) => {
                    resolve(res)
                },
                fail: (err) => {
                    reject(err)
                },
            })
        })
    }
}

module.exports = Http